<div class="pageContent">
	<div class="tabs" currentIndex="0" eventType="click">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<?php foreach ($title as $v):?>
					<li><a href="javascript:;"><span><?php echo $v?></span></a></li>
					<?php endforeach;?>
					<li><a href="javascript:;"><span>自定义版块</span></a></li>
				</ul>
			</div>
		</div>
		<div class="tabsContent pageFormContent nowrap">
			<?php foreach ($title as $k=>$val):?>
			<?php if(isset($content[$k])):?>
			<div>
				<form method="post" action="<?php echo site_url('backend/system/edit') ?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
					<div layoutH="74">
						<?php foreach ($content[$k] as $v):?>
						<dl>
						<dt><?php echo $v['name']?>:</dt>
						<dd>
							<?php if($v['type'] === 'textarea'):?>
							<textarea name="<?php echo $v['cfgname']?>" rows="5" cols="60"><?php echo $v['value']?></textarea>
							<?php else:?>
							<input name="<?php echo $v['cfgname']?>" type="text" value="<?php echo $v['value']?>">
							<?php endif?>
							<span>&nbsp;<?php echo $v['cfgname']?></span>
						</dd>
						</dl>
						<?php endforeach;?>
					</div>
					<div class="formBar" style="background: none;">
						<ul>
							<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
							<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
							<li>
								<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
							</li>
						</ul>
					</div>
				</form>
			</div>
			<?php else:?>
			<div></div>
			<?php endif;?>
			<?php endforeach;?>
			<div>
				<form method="post" action="<?php echo site_url('backend/system/add') ?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
					<div layoutH="74">
						<dl><dt>名称</dt>
							<dd><input type="text" name="name" class="required">
						</dd></dl>
						<dl><dt>值</dt>
						<dd><input type="text" name="value" class="required">
						</dd></dl>
						<dl><dt>配置名</dt>
						<dd><input type="text" name="cfgname" class="required">
						</dd></dl>
						<dl><dt>键类型</dt>
							<dd><select name="type" class="combox required">
									<option value="text">text</option>
									<option value="textarea">textarea</option>
								</select>
						</dd></dl>
						<dl><dt>域类型</dt>
							<dd><select name="parent" class="combox">
									<option value="0">新面版</option>
									<?php foreach ($title as $k=>$v):?>
									<option value="<?php echo $k?>"><?php echo $v?></option>
									<?php endforeach;?>
								</select>
						</dd></dl>
					</div>
					<div class="formBar" style="background: none;">
						<ul>
							<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
							<li><div class="buttonActive"><div class="buttonContent"><button type="submit">添加</button></div></div></li>
							<li>
								<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
							</li>
						</ul>
					</div>
				</form>
			</div>
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>